
package com.joysuch.wwyt.dataimport.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class ProductionFacilityBean {

    private int rowIndex;

    //@NotNull(message = "生产装置编号不能为空")
    @Excel(name = "设备装置编号")
    private String code;

    //@NotNull(message = "生产装置名称不能为空")
    @Excel(name = "设备装置名称")
    private String name;

    @Excel(name = "设备装置类型")
    private String type;

    @Excel(name = "设备型号")
    private String modelNo;

    @Excel(name = "设备装置位号")
    private String tagNumber;

    @Excel(name = "供应商")
    private String supplier;

    @Excel(name = "是否关键装置")
    private String keyEquipment;

    @Excel(name = "所属部门名称")
    private String departName;

    @Excel(name = "上级所属部门名称")
    private String responsibleDeptParentName;

    @Excel(name = "所属部门编码")
    private String departCode;

    @Excel(name = "装置状态")
    @Pattern(regexp = "(运行)|(停产)|(检修)", message = "装置状态只能为：运行、停产、检修")
    private String state;

    @Excel(name = "设备装置用途")
    private String functions;

    @Excel(name = "所在部位")
    private String deviceLocation;

    @Excel(name = "所属区域编码")
    private String riskDistrictCode;

    @Excel(name = "负责人工号")
    private String personInChargeCode;

    @Excel(name = "负责人部门编码")
    private String picDepartCode;

    @Excel(name = "生产日期",importFormat = "yyyy-MM-dd")
    private String manufactureDate;

    @Excel(name = "投用日期",importFormat = "yyyy-MM-dd")
    private String putIntoUseDate;

    @Excel(name = "使用期限(月)")
    private Integer serviceLifeMonths;

    @Excel(name = "保养周期(天)")
    private Integer maintainPeriodDays;

    @Excel(name = "装置生产能力")
    private String productionAbility;

    @Excel(name = "装置技术条件")
    private String technicalCondition;

    @Excel(name = "所属某重大危险源编号")
    private String majorHazardCode;

    @Excel(name = "关联的监测点")
    private String minitorPointCodes;

    @Excel(name = "是否是安全装置")
    private String safeStatus;

    @Excel(name = "楼层")
    private Integer floor;

    @Excel(name = "所在位置")
    private String location;

}
